<template>
  <div>
    <div class="container">
      <!-- 上部插槽 -->
      <div class="top">
        <slot name="pageA"></slot>
      </div>

      <!-- 下部插槽 -->
      <div class="bottom">
        <slot name="pageB"></slot>
      </div>
    </div>
  </div>
</template>

<style scoped>
.container {
  display: flex;
  flex-direction: column; /* 上下布局 */
  gap: 20px; /* 上下间距 */
}

.top, .bottom {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
</style>